<div id="navigation">
	<a href="{U_HOME}">{DOMAIN} cPanel Index</a> ::
	<a href="{U_FILE_MANAGER}">File Manager</a> ::
	Leech Protect Directory
</div><br />

<script>
var defv = "{EMAIL}";
function checkemail() {
	if (document.leechform.email.value == "") {
		document.leechform.emailcheck.checked = false;
	} else {
		document.leechform.emailcheck.checked = true;
	}
}
function killemail() {
	if (document.leechform.emailcheck.checked == false) {
		document.leechform.email.value = "";
	} else {
		document.leechform.email.value = defv;
	}

}
</script>

Leech Protect allows you to prevent your users from giving out or publicly posting their password to 
a restricted area of your site. It should be used in addition to the <a href="{U_PASSWORD_PROTECT}">password protect feature</a>. This feature will redirect (and suspend if selected) accounts which have been compromised to a url of your choice.<br /><br />

Leech protection is currently {STATUS} on the {DIRECTORY} folder.<br /><br />

<div align=center width=100% class=row1>
<b>Enable Leech Protect</b>
</div>

<form action="{S_SETUP_PROTECTION}" name="leechform" method="{S_METHOD}">
{S_HIDDEN_VARS}

<table width=100%>
<tr>
	<td width=50% align=right>Number of logins per username:</td>
	<td width=50%><input type=text name=numhits value="{NUMHITS}" size=2></td>
</tr>
<tr>
	<td align=right>URL to redirect leech users to:</td>
	<td><input type=text name=rurl size=50 value="{URL}"></td>
</tr>
<tr>
	<td align=right>Email Alert:</td>
	<td><input type=checkbox name=emailcheck value=1 onChange="killemail();" {EMAIL_CHECKED}>
Send Email Alert to <input type=text name=email size=30 onChange="checkemail();" value="{EMAIL}"></td>
</tr>
<tr>
	<td align=right>Compromised accounts:</td>
	<td><input type=checkbox name=disableacct value=1 {DISABLE_CHECKED}> Disable Compromised Accounts</td>
</tr>
<tr>
	<td colspan=2 align=center><input type=submit value="Enable Leech Protection"></td>
</tr>
</table>
</form><br /><br />

<div align=center width=100% class=row1>
<b>Disable Leech Protect</b>
</div><br />

Use this button to disable leech protection.<br /><br />

<div align="center">
<form action="{S_DISABLE_LEECH}" method="{S_METHOD}">
{S_HIDDEN_VARS}
<input type=submit value="Disable Leech Protection">
</form>
</div><br /><br />

<div align=center width=100% class=row1>
<b>Notes</b>
</div><br />
The number of logins per username is the maximum number of logins from a single user allowed within a 2 hour period. A number below 4 can cause suspension of legitimate users who have disconnected/reconnected to the site.<br /><br />

The URL that leech users are redirected to must point outside of the leech protected area, or the user will get a internal server error message.<br /><br />

You will recieve an email at the email alert address when leech protection is used to redirect users away from the site. If you choose not to disable an account, you may recieve a lot of emails as you will get one per each attempt to access your site.<br /><br />

If you select the disable compromised account checkbox, users who trigger leech protection will have their account suspended if you are using standard basic authentication.<br /><br />